package com.scalar.chiptrack.users.forms;

import java.util.ArrayList;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

import com.scalar.chiptrack.jobs.Job;


/**
 *
 * @author  Kesava Kumar Achanala
 */
public class SystemJobSetupForm extends ActionForm {
    
    private ArrayList jobsList;
    private Job job = new Job();

    /** Creates a new instance of SystemJobSetupForm */
    public SystemJobSetupForm() {
    }
    
    
    public ArrayList getJobsList()
    {
        return jobsList;
    }
    
    public void setJobsList(ArrayList jobsList)
    {
        this.jobsList = jobsList;
    }

    /**
      * Get the Job
      *
      */

     public Job getJob()
     {
           return job;
     }

     /**
      * Set the Job
      *
      */
     public void setJob(Job job)
     {
      this.job = job;
     }

    String[] weekDays = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
    public String[] getWeekDays()
    {
        return this.weekDays;
    }

    public void setWeekDays(String[] weekDays)
    {
        this.weekDays = weekDays;
    }

      public ActionErrors validate(ActionMapping mapping,
                                 HttpServletRequest request) {

        ActionErrors errors = new ActionErrors();

        //if ((vendorName == null) || (vendorName.length() < 1))
        //    errors.add("Vendor", new ActionError("error.vendor name.required"));

        return errors;

    }
     
    public void reset(ActionMapping mapping, HttpServletRequest request) {
        //nothing to doooo
    }
}
